
//定义类 es 5
function phone(name){
    this.name=name
}

phone.name="ios"
//新属性
phone.prototype.id=23

//定义新方法
phone.prototype.show=function (){
    console.log("新方法")
}

let andorid = phone("android")
console.log(andorid.id)
andorid.show()